import {HTTP} from "@/utils/http.js"


const http = new HTTP()
const request = http.request.bind(http)

export function getUserByToken(token) {
    return request({
        url: `/user/userByToken`,
        method: 'post',
        data: token
    })
}

/**
 * 推送消息接口
 * @returns {*}
 */
export function pushMessage(){
    return request({
        url: `/user/pushmessage`,
        method: 'post'
    })
}
